package com.jingdianjichi.interview.server.config;

import com.jingdianjichi.interview.server.sensitive.WordContext;
import com.jingdianjichi.interview.server.sensitive.WordFilter;
import com.jingdianjichi.interview.server.service.SensitiveWordsService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * ClassName:SensitiveConfig
 * Package:com.jingdianjichi.circle.server.config
 * Description:
 *
 * @Author fst
 * @Create 2025/2/20 16:30
 * @Version 1.0
 */
@Configuration
public class SensitiveConfig {

    @Bean
    public WordContext wordContext(SensitiveWordsService service) {
        return new WordContext(true, service);
    }

    @Bean
    public WordFilter wordFilter(WordContext wordContext) {
        return new WordFilter(wordContext);
    }

}
